package com.atguigu.lease.common.utils;

public class CodeUtil {

    public static String getRandomCode(Integer length) {
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < length; i++) {
            int number = (int) (Math.random() * 10);
            builder.append(number);
        }
        return builder.toString();
    }
}
